//
//  DiscountMoreTableViewCell.m
//  AroundTheWorld
//
//  Created by dllo on 16/5/20.
//  Copyright © 2016年 IfelseGo an. All rights reserved.
//

#import "DiscountMoreTableViewCell.h"

@implementation DiscountMoreTableViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self show];
        
    }
    return self;
}

- (void)show
{
    self.contentView.dk_backgroundColorPicker = DKColorPickerWithRGB(0xffffff,0xCFCFCF);
    self.barkLabel.layer.borderColor = [[UIColor redColor] CGColor];
}

- (void)setMyListModel:(DiscountMoreHot_areaListModel *)myListModel
{
    _myListModel = myListModel;
    self.titleLabel.text = _myListModel.title;
    self.soldLabel.text = _myListModel.sold;
    self.priceLabel.text = _myListModel.price;
    [self.potoImageV sd_setImageWithURL:[NSURL URLWithString:_myListModel.photo] placeholderImage:nil];
    self.barkLabel.layer.borderColor = [[UIColor colorWithRed:240 / 255.0 green:240 / 255.0 blue:240 / 255.0 alpha:1.0] CGColor];
}

- (void) setMyModel:(DiscountMoreDidcount_topicListModel *)myModel
{
    _myModel = myModel;
    self.titleLabel.text = _myModel.title;
    self.soldLabel.text = _myModel.sold;
    self.priceLabel.text = _myModel.price;
    [self.potoImageV sd_setImageWithURL:[NSURL URLWithString:_myModel.photo] placeholderImage:nil];
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
